using System.Threading.Tasks;

namespace CR.API.Services
{
    /// <summary>
    /// 验证码服务接口
    /// </summary>
    public interface ICaptchaService
    {
        /// <summary>
        /// 生成验证码
        /// </summary>
        /// <returns>验证码ID和图片URL</returns>
        Task<(string captchaId, string imageUrl)> GenerateCaptchaAsync();
        
        /// <summary>
        /// 验证验证码
        /// </summary>
        /// <param name="captchaId">验证码ID</param>
        /// <param name="userInput">用户输入的验证码</param>
        /// <returns>是否验证通过</returns>
        Task<bool> ValidateCaptchaAsync(string captchaId, string userInput);
    }
} 